<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
<title>Questionnaire</title>
<link rel="stylesheet" href="component/bootstrap-3.3.7-dist/css/bootstrap.css">
<script type="text/javascript" src="component/jquery-3.1.1.js"></script>
<script type="text/javascript" src="component/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="common/js/questionnaire/infillingQuestionnaire.js"></script>

</head>
<body>
<h1>${questionnaireCurrent.questionnaireName}</h1>
  <c:if test="${!empty questionList }">  
                <c:forEach items="${questionList}" var="question">
                <div class="question">${question.questionNumber}.${question.questionName}
                <input class="questionId" type="hidden" value="${question.questionId}">
                <input class="questionType" type="hidden" value="${question.questionType}">
                <div class="option"></div>
                </div>
                </c:forEach>
  </c:if>
  <br>
<button id="backToList" class="btn" onclick= "window.location='openQuestionnaireListFront.action'">Back To List</button>
<button id="backToIndex" class="btn" onclick= "window.location='index.action'">Back To Index</button>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<button id="saveQuestionnaireAnswer" class="btn btn-success" >Save</button>
<button id="submitQuestionnaireAnswer" class="btn btn-primary" >Submit</button>
<input id="questionnaireId" type="hidden" value="${sessionScope.questionnaireId}">
<input id="optionQuestionCount" type="hidden"value="${sessionScope.optionQuestionCount}">
<input id="textQuestionCount" type="hidden" value="${sessionScope.textQuestionCount}">
<input id="ifQuestionnaireSaved" type="hidden" value="${sessionScope.ifQuestionnaireSaved}">
</body>
</html>